package com.sjf.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sjf.common.Result;
import com.sjf.reggie.entity.Employee;

import javax.servlet.http.HttpServletRequest;

public interface EmployeeService extends IService<Employee> {

    Result<Employee> login ( HttpServletRequest request , Employee employee );

    void logout ( HttpServletRequest request );

    boolean add (HttpServletRequest request, Employee employee );

    Page<Employee> selectList ( Integer page , Integer size , String name );

    boolean edit (HttpServletRequest request, Employee employee );

}
